Repository navigation
pkgs/id crate split step 2b-2: extract id-events (#4405) - #8664
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 53 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Rebased-tree verification (this branch rebased onto current main after 2b-1 merged; drift since the original base was confined to
|
Step 2b-2 of the pkgs/id crate split (#3447 umbrella, #4405), stacked on step 2b-1 (PR #8656, merged b8be94f): move the event-store family into the
id-eventscrate created there. Implementation now lives only inid-events; the facade re-exportsid::event_store,id::local_events,id::event_sync,id::attestationat their historical paths, andid::store_traits::SharedEventStorekeeps pinning the same concrete store (theEventStoreBackendimpl moved withEventStore).Moved:
event_store(mod, ingest, resolve, claims, chat, documents, range, sync, waiting_rows, writer_set),local_events,event_sync,attestation.Adaptations (relocation/visibility only, no behaviour or API change):
crate::*paths in the moved modules now resolve to the owning lower crates (id_core::*,id_store::*) or toid_eventsitself; the fold/model/idset/pull-policy seams were already resolved downward by 2b-1.event_store::sync::{RangeStore, sync_on_streams}andevent_sync::CLOSE_WAITarepub(werepub(crate)): the facade'slog_sync/artifactname them, as they did when all lived in one crate. Insideid-events,sync.rspinsShared = SharedEventStore<super::EventStore>for itsRangeStoreimpl — the same pin the facade alias names.event_sync's ALPN distinctness) compares against the literal handshake ALPN/id-sync/1instead of naming the facade'slog_sync::SYNC_ALPN, which sits above this crate; the constant asserted is unchanged.log_sync,abuse,server_config) became plain references.Verification (protocol of steps 1/2a):
frames::tests::byte_refusal_...(pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620).web/*.ts,world_dev.rs,tests/toolchain_pin.rs); the rebased tree is re-verified before merge and the result posted as a PR comment.sha256sum pkgs/id/src/sandbox.rsidentical (db88ec8d52e961702353c97a407b77badadef1bd7e0a610a6075267e175d80b5);print_fuel_baselineoutput byte-identical (72 lines) on both 2b-1 and this tree.nix build ./pkgs/id#id-lib— check-phase result posted as a PR comment (main's own check phase fails on the same single frames test: 2,490 passed / 1 failed).cargo check -p id --no-default-featuresfails identically on unmodified main and on this tree (pre-existingworld_compile→world_cache/world_sessionfeature-gating errors, untouched by this split).event_store/local_events/event_sync/attestationimplementation remains in facadesrc(onlypub usere-exports inlib.rs).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.